package com.ambulance.project.manager.service.impl;

import com.ambulance.project.manager.domain.BizDispatchnotice;
import com.ambulance.project.manager.mapper.BizDispatchnoticeMapper;
import com.ambulance.project.manager.service.IBizDispatchnoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 调度通知Service业务层处理
 *
 * @author zr
 * @date 2020-05-11
 */
@Service
public class BizDispatchnoticeServiceImpl implements IBizDispatchnoticeService {
    @Autowired
    private BizDispatchnoticeMapper bizDispatchnoticeMapper;

    /**
     * 查询调度通知
     *
     * @param noticeID 调度通知ID
     * @return 调度通知
     */
    @Override
    public BizDispatchnotice selectBizDispatchnoticeById(Long noticeID) {
        return bizDispatchnoticeMapper.selectBizDispatchnoticeById(noticeID);
    }

    /**
     * 查询调度通知列表
     *
     * @param bizDispatchnotice 调度通知
     * @return 调度通知
     */
    @Override
    public List<BizDispatchnotice> selectBizDispatchnoticeList(BizDispatchnotice bizDispatchnotice) {
        return bizDispatchnoticeMapper.selectBizDispatchnoticeList(bizDispatchnotice);
    }

    /**
     * 新增调度通知
     *
     * @param bizDispatchnotice 调度通知
     * @return 结果
     */
    @Override
    public int insertBizDispatchnotice(BizDispatchnotice bizDispatchnotice) {
        return bizDispatchnoticeMapper.insertBizDispatchnotice(bizDispatchnotice);
    }

    /**
     * 修改调度通知
     *
     * @param bizDispatchnotice 调度通知
     * @return 结果
     */
    @Override
    public int updateBizDispatchnotice(BizDispatchnotice bizDispatchnotice) {
        return bizDispatchnoticeMapper.updateBizDispatchnotice(bizDispatchnotice);
    }

    /**
     * 批量删除调度通知
     *
     * @param noticeIDs 需要删除的调度通知ID
     * @return 结果
     */
    @Override
    public int deleteBizDispatchnoticeByIds(Long[] noticeIDs) {
        return bizDispatchnoticeMapper.deleteBizDispatchnoticeByIds(noticeIDs);
    }

    /**
     * 删除调度通知信息
     *
     * @param noticeID 调度通知ID
     * @return 结果
     */
    @Override
    public int deleteBizDispatchnoticeById(Long noticeID) {
        return bizDispatchnoticeMapper.deleteBizDispatchnoticeById(noticeID);
    }
}
